package org.beangle.notification

import java.util.List
//remove if not needed
import scala.collection.JavaConversions._

/**
 * 消息队列
 */
trait MessageQueue[T <: Message] {

  def size(): Int

  def poll(): T

  def getMessages(): List[T]

  def addMessages(contexts: List[T]): Unit

  def addMessage(message: T): Unit
}
